package com.tokenplus.thai.data

import com.tokenplus.thai.ProjectConfig
import com.tokenplus.thai.utils.TranslateUtil
import com.tokenplus.thai.utils.UserStateUtil
import com.tokenplus.thai.utils.analytics.timezone.TimeZoneUtil
import com.tokenplus.thai.utils.analytics.util.AnalyticsUtil

open class ReqBase(
    var userId: String = "",//userId
    var androidId: String = "",//安卓id
    var advertId: String = "",//广告id
    var appVersion: String = "",//app版本号
    var app: String = "",//产品
    var clientType: String = "",//终端类型
    var country: String = "",//地区
    var showLoading: Boolean = true,//是否显示loading
    var channel: String = "APP",
    var language: String = "thai",
    var reInstall:Boolean = false
) {
    init {
        this.userId = UserStateUtil.mUserId
        this.androidId = AnalyticsUtil.getAndroidId()
        this.advertId = AnalyticsUtil.getAdId()
        this.country = TimeZoneUtil.getCountryByTimeZone()//"thai"
        this.appVersion = ProjectConfig.appVersion.toString()
        this.app = ProjectConfig.product
        this.clientType = "ANDROID"
        this.channel = "APP"
        this.language = TranslateUtil.getApiLanguage()
        this.reInstall = UserStateUtil.mReInstall
    }
}